/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package snake.core;

import snake.SnakeGame;
import snake.core.gameinterface.MainWindow;
import snake.gameplay.Position;

/**
 *
 * @author Fein
 */
public class PositionToComponentNoConverter {

    public static int convert(Position position) {
        return convert(position.getCoordinateX(), position.getCoordinateY());
    }

    public static int convert(int coordinateX, int coordinateY) {
        return SnakeGame.SIZEX * coordinateY + (coordinateX);
    }
}
